const Shoucang = require("../service/shoucang")

const getList = async (ctx) => {
    let res = await Shoucang.shoucang(ctx.query.id)
    if (res.count != 0) {
        return ctx.body = {
            code: 200,
            msg: '获取成功',
            data: res
        }
    } else {
        return ctx.body = {
            code: 400,
            msg: '获取失败',
            data: {}
        }
    }
}

module.exports={
    getList
}